import { useCookieStore } from "@/stores/cookieStore"
import request from "@/utils/request"


// 获取云盘数据
export const getCloudDataApi = ()=> {
  const useCookie = useCookieStore()
  return request({
    url: '/user/cloud',
    params: {
      cookie: useCookie.cookie.cookie,
      timestamp: Date.now()
    }
  })
}

// 删除云盘内的歌曲
export const deleteCloudSongApi = (id) => {
  const useCookie = useCookieStore()
  return request({
    url: '/user/cloud/del',
    params: {
      id,
      cookie: useCookie.cookie.cookie
    }
  })
}